#!/bin/bash
git reset --hard
git pull
lsof -i:9090 | awk 'NR>1 {print $2}' | xargs --no-run-if-empty kill -9
ps -ef | grep 'python -W ignore main.py'| awk '{print $2}' | grep -v 'grep'|xargs --no-run-if-empty kill -9
python -W ignore main.py